Skip to content

[Workbench] Auto open projects#1575

Open
WrapEarnPass wants to merge 5 commits into
geany:masterfrom
WrapEarnPass:autoopenproject
Open

[Workbench] Auto open projects#1575
WrapEarnPass wants to merge 5 commits into
geany:masterfrom
WrapEarnPass:autoopenproject

Conversation

@WrapEarnPass

@WrapEarnPass WrapEarnPass commented Jun 17, 2026

Copy link
Copy Markdown

About this:
It is annoying to have to open a Workbench on each Geany load.
Geany Project autoloads last Project, so I added a Workbench key to Project, so that when a Project is open, Workbench has some idea of which Workbench to load.
Workbench can have multiple Projects, but, in order to try to simplify code complexity as much as possible, a Project only tracks a single Workbench.

@WrapEarnPass

Copy link
Copy Markdown
Author

I have to update this pull request as I added a keyfile header for 'workbench' but
wb_project.c: str = g_key_file_get_string(kf, "Workbench", key, NULL);
wb_project saves to 'Workbench' and I don't want to pollute the keyfile space.

@WrapEarnPass

Copy link
Copy Markdown
Author

Moved this so I could change the Pull request to About this
I checked out geany@98bcbee3b99d71dfcdd9d3556ace9530ceda818d
and built:
build@debian:~/Projects/geany-plugins-remote/geany-plugins$ git log | head
commit bc8d253
No errors raised by make

config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
make[1]: Leaving directory '/home/build/Projects/geany-plugins-remote/geany-plugins'
Making all in src
make[1]: Entering directory '/home/build/Projects/geany-plugins-remote/geany-plugins/workbench/src'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/build/Projects/geany-plugins-remote/geany-plugins/workbench/src'
make[1]: Entering directory '/home/build/Projects/geany-plugins-remote/geany-plugins/workbench'
make[1]: Nothing to be done for 'all-am'.
make[1]: Leaving directory '/home/build/Projects/geany-plugins-remote/geany-plugins/workbench'

Created a Workbench, then created a project, then added a project to workbench, then closed and reopened geany.
image
Both the project and the workbench opened.

This is the only critical in the geany --verbose log, but it appears to be unrelated to the changes.
(geany:109669): Workbench-CRITICAL **: 09:18:59.395: plugin_workbench_on_doc_close: assertion 'doc != NULL && doc->file_name != NULL' failed

Closes #1226
Fixes #1561
Contributed under GNU GENERAL PUBLIC LICENSE Version 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant